package com.jfinal.aceadmin.model;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Repository;
@Repository
public class LeaveMessageImpl{
	private static ApplicationContext ctx;
	
	public static LeaveMessageImpl getDAO() {
		if (null == ctx) {
			ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
		}
		LeaveMessageImpl instance =  ctx.getBean(LeaveMessageImpl.class);
		return instance;
	}
}